/*
 * @Author: 李天惊 uf_lee@163.com
 * @Date: 2022-11-24 14:45:15
 * @LastEditors: 李天惊 uf_lee@163.com
 * @LastEditTime: 2025-02-27 18:24:24
 * @FilePath: \global-brain\global-brain-admin\src\api\cs\shop\index.ts
 * Copyright (c) 2022 by 李天惊 uf_lee@163.com, All Rights Reserved.
 * 店铺相关接口
 */
import { useAxios } from '@/hooks/web/useAxios'
const request = useAxios()

import { useCache } from '@/hooks/web/useCache'
const { wsCache } = useCache()

// 订单列表
export const adminCsShopListApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'adminCsShopList',
      data: data
    }
  })
}

// 查看
export const adminShopShopSeeApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'adminShopShopSee',
      data: data
    }
  })
}

// 店铺列表
export const adminShopShopListeApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'adminShopShopList',
      data: data
    }
  })
}

// 店铺审核
export const adminShopShopExamineApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'adminShopShopExamine',
      data: data
    }
  })
}
